package cn.getech.data.metadata.model.req.collectionsystemmodule;

import lombok.Data;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.util.Date;
import java.io.Serializable;

import cn.getech.data.intelligence.common.validator.group.AddGroup;
import cn.getech.data.intelligence.common.validator.group.UpdateGroup;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.NotBlank;

/**
 * 系统模块
 * 
 * @author qiuxinglei
 * @email qiuxinglei@gmail.com
 * @date 2020-09-29 15:30:41
 */
@ApiModel(description = "系统模块添加请求")
@Data
public class CollectionSystemModuleAddReq implements Serializable {
	private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "类型 1:系统 2:模块")
    @NotNull(message = "类型不能为空", groups = {AddGroup.class, UpdateGroup.class})
    private Integer smType;

    @ApiModelProperty(value = "名称")
    @NotBlank(message = "名称不能为空", groups = {AddGroup.class, UpdateGroup.class})
    private String smName;

    @ApiModelProperty(value = "系统id(类型是1系统时值为0，类型是2系统时值是具体系统id)")
    private Integer parentId;

    @ApiModelProperty(value = "负责人id(类型是1系统时值为0，类型是2系统时值是具体用户id)")
    private Long userId;

}
